package com.highcom.service.impl;

import com.highcom.dao.AccountMapper;
import com.highcom.domain.Account;
import com.highcom.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public void transfer(String outName, String inName, Double money) {
        accountMapper.inMoney(outName,money);
        int i = 1/0;
        accountMapper.outMoney(inName,money);
    }
}
